﻿using System;
using System.IO;
using System.Reflection;

namespace SB.UserSettings
{
    public static class UserSettingsFacade
    {
        private static bool initialized = false;
        private static UserSettingsXML xmlSettings = null;

        public enum WriteTypes
        {
            Overwrite,
            Append
        }

        private static void Initialize()
        {
            xmlSettings = new UserSettingsXML();
            initialized = true;
        }
        
        public static IUserSettingsXML XMLInterface
        {
            get
            {
                if (!initialized)
                    Initialize();

                return xmlSettings;
            }
        }
    }
}
